﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FileDuplicateRemover.Core;

namespace FileDuplicateRemover.Test.WinForm
{
    public class GridItem
    {
        private BaseEntity _Entity;
        private DuplicateEntityDescription _DuplicateEntityDescription;

        public string ID
        {
            get
            {
                return _DuplicateEntityDescription.ID;
            }
        }

        public string Name
        {
            get
            {
                return _Entity.FullName;
            }
        }

        public int Count
        {
            get
            {
                return _DuplicateEntityDescription.DuplicateCount;
            }
        }

        public long Length
        {
            get
            {
                return _Entity.Length;
            }
        }

        public GridItem(DuplicateEntityDescription ded, BaseEntity e)
        {
            _DuplicateEntityDescription = ded;
            _Entity = e;
        }
    }
}
